package com.example.mybatisplus.demo.config;

import com.example.mybatisplus.importannotation.TestA;
import com.example.mybatisplus.importannotation.TestImportBeanDefinitionRegistrar;
import com.example.mybatisplus.importannotation.TestImportSelector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.client.RestTemplate;

/**
 * @author zengqingfa
 * @className ImportConfig
 * @description
 * @create 2022/6/14 20:46
 */
//加上@Configuration是为了能让Spring 扫描到这个类
@Configuration
@Import({TestA.class, TestImportSelector.class, TestImportBeanDefinitionRegistrar.class})
public class ImportConfig {

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}